import { io } from "socket.io-client";

export default {
  install(app){
   const socket = io('http://localhost:3000',{
      autoConnect:true
    });
    socket.on("connect", () =>{
      console.log("connect");
    })
    socket.on("disconnect", () =>{
      console.log("disconnect");
    })
    socket.on("reconnect", () =>{
      console.log("reconnect")
    })
    app.prototype.$socket = socket
  }
}